<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<mesoBoard.Data.Rank>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <script language="javascript" type="text/javascript">
        $(function () {
            $("input._rolerank").click(function () {
                if ($("input._rolerank:checked").val() == 'True')
                    $("._postcount").hide();
                else
                    $("._postcount").show();
            });
        });
        
    </script>

    <fieldset>
        <legend><%= Html.ThemeImage("award_star_gold.png")%> Create Rank</legend>
       
        <% using(Html.BeginForm()){ %>
            <dl class="form">
                <dt>Title</dt>
                <dd>
                    <%= Html.TextBox("Title")%>
                    <%= Html.ValidationMessage("Title")%>
                </dd>
                
                <dt>Is a role rank</dt>
                <dd>
                    <%= Html.RadioButton("IsRoleRank", true, new { @class="_rolerank", id="IsRoleRankTrue" }) %> <%= Html.Label("IsRoleRankTrue", "Yes", "inline") %>
                    <%= Html.RadioButton("IsRoleRank", false, true, new { @class = "_rolerank", id = "IsRoleRankFalse" })%> <%= Html.Label("IsRoleRankFalse", "No", "inline") %>
                </dd>
                
                <dt class="_postcount">Post Count</dt>
                <dd class="_postcount" >
                    <%= Html.TextBox("PostCount")%>
                    <%= Html.ValidationMessage("PostCount")%>
                </dd>
                
                <dt>Image</dt>
                <dd>
                    <%= Html.TextBox("Image")%>
                    <%= Html.ValidationMessage("Image")%>
                </dd>
                
                <dt>Repeat</dt>
                <dd>
                    <%= Html.TextBox("Repeat", 1)%>
                    <%= Html.ValidationMessage("Repeat")%>
                </dd>

                <dt>Title Color</dt>
                <dd>
                    <%= Html.TextBox("Color") %>
                    <label id="colorPickerPreview" class="inline" style='font-size: 12.5px;font-weight: bold;'>Color Preview</label>
                </dd>
                                                                              
                <dt>&nbsp;</dt>
                <dd>
                    <%= Html.SubmitButton("CreateRank", "Create Rank") %>
                </dd>
            </dl>
        <% } %>
    </fieldset>

</asp:Content>
